package com.loongtech.bi.entity.core;

import java.io.Serializable;

public class KeyRoleIdAndLevel implements Serializable
{
	// 日期标识
	private String				roleId;
	// 渠道标识
	private int					level;
	private static final long	serialVersionUID	= 1L;

	public KeyRoleIdAndLevel()
	{
	}

	public KeyRoleIdAndLevel(String roleId, int level)
	{
		this.roleId = roleId;
		this.level = level;
	}

	public String getRoleId()
	{
		return roleId;
	}

	public void setRoleId(String roleId)
	{
		this.roleId = roleId;
	}

	public int getLevel()
	{
		return level;
	}

	public void setLevel(int level)
	{
		this.level = level;
	}

	@Override
	public int hashCode()
	{
		final int prime = 31;
		int result = 1;
		result = prime * result + level;
		result = prime * result + ((roleId == null) ? 0 : roleId.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj)
	{
		if (this == obj)
		{
			return true;
		}
		if (obj == null || getClass() != obj.getClass())
		{
			return false;
		}
		final KeyRoleIdAndLevel o = (KeyRoleIdAndLevel) obj;
		if (roleId == null && o.roleId != null || null != roleId && !roleId.equals(o.roleId))
		{
			return false;
		}
		return level == o.level;
	}

	@Override
	public String toString()
	{
		return "KeyRoleIdAndLevel [roleId=" + roleId + ", level=" + level + "]";
	}
}
